﻿@model MVC4CodeSamples.Models.Entities.Product

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Product</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ProductNumber)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductNumber)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Color)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Color)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.StandardCost)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StandardCost)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ListPrice)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ListPrice)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Size)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Size)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Weight)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Weight)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ProductCategory.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductCategory.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ProductModel.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductModel.Name)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SellStartDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SellStartDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SellEndDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SellEndDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.DiscontinuedDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DiscontinuedDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ThumbnailPhotoFileName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ThumbnailPhotoFileName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.rowguid)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.rowguid)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ModifiedDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModifiedDate)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ProductID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
